<!DOCTYPE html>
<html lang="en">
<style>
*{
    padding:0;
    margin:0;
}
body{
    background-color:#888888;
}
.login{
    border:solid blue 1px;
    width:600px;
    height:400px;
    margin:0 auto;
    position:relative;
    top:200px;
    border-radius:25px;
    background-color:#fff;
}
.form1{
    width:400px;
    height:300px;
    position:absolute;
    left:50%;
    margin-left:-150px;
    top:50%;
    margin-top:-100px;
    
    
}
.form2{
    margin-bottom:20px;
}
input{
    border:red solid;
    height:40px;
    border-radius:5px;
}
#sub{
    width:200px;
    border:solid #FFF;
    cursor:pointer;
}
#title{
    position:relative;
    left:50%;
    margin-left:-70px;
    top:170px;
}
</style>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <div id="title">
    <h1 >用户登录</h1>
    </div>
    <div class="login">
    <form action="requestController" class="form1" method="post">
    用户名
    <div class="form2">
    <input type="text" name="userName" style="width:300px;" ><br>
    </div>
    <span>密码</span>
    <div class="form2">
    <input type="text" name="userPassword" style="width:300px;" ><br>
    </div>
    <div class="form2"  style="margin-left:50px;height:50px;width:200px;">
    <input type="submit" id="sub">
    </div>
    </form>
    </div>
</head>
<body>
    
</body>
</html>